# 定义一个列表变量，内容如下["张飞","刘备","关羽","刘邦","刘老二","曹操"]
# 查找列表中是否有刘备，如果有将其删除

list = ["张飞", "刘备", "关羽", "刘邦", "刘老二", "曹操"]

for i in list:
    if i == "刘备":
        list.remove("刘备")

print(list)

# [3,5,67,2,34,12,5,11]求平均值
# 求平均值值 先求和 在除以成员数量
list1 = [3, 5, 67, 2, 34, 12, 5, 11]
sum = 0;
for i in list1:
    sum += i

print( sum/len(list1))